﻿@page
@model GenerateRecoveryCodesModel
@{
    ViewData["Title"] = "Generate two-factor authentication (2FA) recovery codes";
    ViewData["ActivePage"] = ManageNavPages.TwoFactorAuthentication;
    var culture = System.Globalization.CultureInfo.CurrentCulture.Name;
    var url = Url.Page("./ResetAuthenticator", null, new { culture });
}

<h4 localize-content>@ViewData["Title"]</h4>
<alert></alert>

<div class="alert alert-warning" role="alert">
    <p>
        <span class="glyphicon glyphicon-warning-sign"></span>
        <strong localize-content>Put these codes in a safe place.</strong>
    </p>
    <p localize-content>
        If you lose your device and don't have the recovery codes you will lose access to your account.
    </p>
    <p localize-args="@(new[] { url })">
        Generating new recovery codes does not change the keys used in authenticator apps. If you wish to change the key used in an authenticator app you should <a href="{0}">reset your authenticator keys.</a>
    </p>
</div>
<div>
    <form method="post" class="form-group">
        <button class="btn btn-danger" type="submit" localize-content>Generate Recovery Codes</button>
    </form>
</div>